<template>
  <div class="loader">
    <div class="loader-inner ball-grid-pulse">
      <div></div>
      <div></div>
      <div></div>
    </div>
  </div>
</template>
<style>
.loader {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}
@keyframes ball-grid-pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0.7;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}

.ball-grid-pulse {
  width: 100%;
}

.ball-grid-pulse > div:nth-child(1) {
  -webkit-animation-delay: -0.06s;
  animation-delay: -0.06s;
  -webkit-animation-duration: 0.72s;
  animation-duration: 0.72s;
}

.ball-grid-pulse > div:nth-child(2) {
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
  -webkit-animation-duration: 1.02s;
  animation-duration: 1.02s;
}

.ball-grid-pulse > div:nth-child(3) {
  -webkit-animation-delay: -0.17s;
  animation-delay: -0.17s;
  -webkit-animation-duration: 1.28s;
  animation-duration: 1.28s;
}

.ball-grid-pulse > div {
  background-color: #1989fa;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  margin: 6px;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  display: inline-block;
  -webkit-animation-name: ball-grid-pulse;
  animation-name: ball-grid-pulse;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-delay: 0;
  animation-delay: 0;
}
</style>
